Making Exception Handling Work

نویسندگان

  • Bruno Cabral
  • Paulo Marques
چکیده

Most modern programming languages rely on exceptions for dealing with errors. Although exception handling was a significant improvement over other mechanisms like checking return codes, it’s far from perfect. In fact, it can be argued that this mechanism is seriously flawed. In this paper we argue that exception handling should be automatically done at the runtime/operating system level. The motivation is similar to the one that lead to garbage collection: memory management was a tedious and error prone process, thus virtual machines included support for taking care of it. We believe that many exceptions can be automatically dealt with, and recovered, as long as appropriate mechanisms exist in the runtime environment. We believe that this approach may dramatically influence the way programming languages are designed and significantly contribute to having more robust code, being actually developed with much less programming effort.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Specifying and Dynamically Monitoring the Exception Handling Policy

The exception handling policy of a system comprises the set of design rules that specify its exception handling behavior (how exceptions should be handled and thrown). Such policy is usually undocumented and implicitly defined by the system architect. For this reason, developers may think that by just including catch-blocks in the code they can deal with exception conditions. This lack of infor...

متن کامل

Improving Program Correctness with Atomic Exception Handling

Exception handling is a powerful mechanisms for dealing with failures at runtime. It simplifies the development of robust programs by allowing the programmer to implement recovery actions and tolerate non-fatal errors. Yet, exception handling is difficult to get right! The complexity of correct exception handling is a major cause for incorrect exception handling. It is therefore important to re...

متن کامل

Optimizing Exception Handling in Workows using Activity Restructuring

Exception handling is the process by which a failure in a process is mitigated. Depending on the speci…cs of an exception, exception handling may range from halting a process, through attempts of activity reactivation, to an identi…cation of an alternative path to successful completion of a process. Designing e¢ cient exception handlers is not a simple task. By their very nature, exceptions are...

متن کامل

Exception Handling in a Replicated Agent Environment

de ning an exception handling system for agents. This work is based on previous work that has been done by these partners on the Sage exception handling system that was adapted to the context of the Facoma project. re ning their knowledge and understanding of the Dimax3 replicated agent environment provided by the Lip6 partner. setting the rst elements of a speci cation of an exception handling...

متن کامل

Preference Handling - An Introductory Tutorial

We present a tutorial introduction to the area of preference handling – one of the core issues in the design of any system that automates or supports decision making. The main goal of this tutorial is to provide a framework, or perspective, within which current work on preference handling – representation, reasoning, and elicitation – can be understood. Our intention is not to provide a technic...

متن کامل

Dynamic and Extensible Exception Handling for Workflows: A Service-Oriented Implementation

This paper presents the realisation, using a Service Oriented Architecture, of an approach for dynamic, flexible and extensible exception handling in workflows, based not on proprietary frameworks, but on accepted ideas of how people actually work. The approach utilises an established framework for workflow flexibility called worklets and a detailed taxonomy of workflow exception patterns to pr...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006